package cn.qlu.yhy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.qlu.yhy.dao.IUserDao;
import cn.qlu.yhy.model.User;
import cn.qlu.yhy.model.enumpack.Role;
import cn.qlu.yhy.service.IUserService;

@Service
public class UserServiceImpl implements IUserService{

    @Autowired
    private IUserDao userDao;

    @Override
    public User login(String username, String password) {
        // TODO Auto-generated method stub
        User user = userDao.getUserByUserNamePassword(username, password);
        return user;
    }

    @Override
    public boolean deleteUser(User user) {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public boolean createUser(User user) {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public boolean updateUser(User user) {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public User getUserByUserId(int userId) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public User getUserByName(String userName) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public User getUserByNickname(String nickname) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public boolean getUserExistByUserName(String userName) {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public boolean getUserExistByNickname(String nickname) {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public List<User> findUsers() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public List<User> findUsersByRole(Role role) {
        // TODO Auto-generated method stub
        return null;
    }



}
